package tech.aistar.day01;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
@WebServlet(urlPatterns = "/day01/loginview")
public class LoginViewController extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("text/html;charset=utf-8");
        PrintWriter out=resp.getWriter();
        out.println("<!doctype html>");
        out.println("<html>");
        out.println("   <head>");
        out.println("      <meta charset='utf-8'>");
        out.println("     <title>用户登录</title>");
        out.println("   </head>");
        out.println("   <body>");
        out.println("    <h3>输出网页内容</h3>");
        out.println("</body>");
        out.println("</html>");
    }
}
